﻿using QFramework;

namespace HKTools
{
    /// <summary>
    /// 设置相机是否可操作的指令，true时可叫做，false时不可操作
    /// </summary>
    public class CMD_SetCameraState : AbstractCommand
    {
        bool isCanCtrl;

        public CMD_SetCameraState(bool isCanCtrl)
        {
            this.isCanCtrl = isCanCtrl;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IHK_TargetCamSystem>().SetCameraState(isCanCtrl);
        }
    }
}